package com.example.androidpattern.state.classes;

import android.util.Log;

import com.example.androidpattern.state.interfaces.IState;

/**
 * @ClassName: SoldOutState$
 * @Description: java类作用描述
 * @Author: xinya
 * @CreateDate: 2020/11/11$ 18:30$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class SoldOutState implements IState {
    private static final String TAG = "SoldOutState";
    private VendingMachine mMachine;

    public SoldOutState(VendingMachine machine) {
        mMachine = machine;
    }

    @Override
    public void insertMoney() {
        Log.e(TAG, "insertMoney: 商品已售罄,投比失败");
    }

    @Override
    public void outMoney() {
        Log.e(TAG, "outMoney: 商品已售罄， 退钱失败");
    }

    @Override
    public void chooseGoods() {
        Log.e(TAG, "chooseGoods: 商品已售罄, 选择商品失败");
    }

    @Override
    public void outGoods() {
        Log.e(TAG, "outGoods: 商品已售罄, 出货失败");
    }
}
